//
// Created by 朕与将军解战袍 on 2022/3/12.
//

#ifndef TRUETYPERENDER_GLYPH_H
#define TRUETYPERENDER_GLYPH_H

typedef struct Vertex {
    double x;
    double y;
} Vertex;

typedef struct BezierQuadratic {
    Vertex p0;
    Vertex p1;
    Vertex p2;
} BezierQuadratic;

typedef struct Polygon {
    Vertex *vertices;
    int     size;
} Polygon;

typedef enum GlyphType {
    BEZIER_QUADRATIC,
    POLYGON,
} GlyphType;

typedef struct Glyph {
    void* data;
    int   size;
    GlyphType type;
} Glyph;

#endif //TRUETYPERENDER_GLYPH_H
